package com.yuntsg.ruiijn.databse_search.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author 葛成瑞
 * @since 2023-10-20
 */
@TableName("file_details_txt")
@Data
@Accessors(chain = true)
public class FileDetailsTxt implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 文件id
     */
    private Integer fId;


    /**
     * 记录id
     */
    private Integer rid;

    /**
     * 类型(1文本,2图片,3用户上传图片，4拆分图片,5拆分文字.6自定义切割,-1 检索结果图片 不显示)
     */
    private Integer tpye;

    /**
     * 精细拆分拆分状态(0未拆分 1 已拆分)
     */
    private Integer splitStatus;


    /**
     * 第几段
     */
    private Integer segment;

    /**
     * 第几句
     */

    private String paragraphName = ""; // 段落的名称

    private String subProject = ""; // 该段落内的子标题


    private Integer sentence = 0; // 句子的序号


    private String pmid;

    private Integer status;

    private Integer tableNo;

    private Integer serialId;


    /**
     * 目录id 默认 -1 目标 -2
     */
    private Integer collectionStatus;


    /**
     * 目录id 默认0 删除 -1
     */
    private Integer deleteFlag;


    /**
     * 字节流
     */
    private byte[] figureZip;

    private String txtContent;

    //  2023年10月5日14:54:23 老板意思是如果匹配到文字相同大于30% 本句话也被标红
    private String matchContent;

    private String path;


    private Integer topX = 0;
    private Integer topY = 0;
    private Integer bottomX = 0;
    private Integer bottomY = 0;


    private String partDirct;

    @TableField(exist = false)
    private List<ReportDetail> reportDetails;


    @TableField(exist = false)
    private Integer subStatus;


    @TableField(exist = false)
    private Integer isShow;

    @TableField(exist = false)
    private String fPath;


    @TableField(exist = false)
    private Boolean isWhite;

    @TableField(exist = false)
    private List<Float> vector;
}
